const distance = function(from,to){
	return new Promise((resolve,reject) =>{
		uni.request({
			url:'https://apis.map.qq.com/ws/distance/v1/matrix',
			data:{
				key:'A3LBZ-IVTKX-BG442-77PAZ-47VTH-OUBDY',
				from,
				to,
				mode:'walking'
			},
			success: (res) => {
				resolve(res.data)
			},
			fail(err) {
				reject(err)
			}
		})
	})
}
export default distance